from django.contrib import admin
from djwheel.adminutils import AdvancedAdmin
import models

class ImagesAdmin(AdvancedAdmin):
    model = models.Images
    ordering = ('-id',)
    list_display = (
        'description',
        'adm_preview_image',
        'adm_path',
        'adm_code',
    )
    list_display_links = (
        'description',
        'adm_preview_image',
    )
    list_per_page = 15

class FilesAdmin(AdvancedAdmin):
    model = models.Files
    ordering = ('-id',)
    list_display = (
        'description',
        'adm_code',
    )
    list_display_links = (
        'description',
    )
    list_per_page = 15
